package aug22;

class MyRunnableTwo implements Runnable{
    public void run(){
        System.out.println("run");
        first();
    }
    public void first(){
        System.out.println("first");
        second();
    }
    public void second(){
        System.out.println("second");
    }
}
public class UncertainThreadEx {   
    public static void main(String[] args){
        System.out.println("main start");        
        Runnable r = new MyRunnableTwo();
        Thread myThread = new Thread(r);
        myThread.start();
		System.out.println("main end");
    }
}